//货柜与商品-商品列表-配置文件
App.util.ns('Client.Feedback');
Client.Feedback.Conf = {
    columns: [
        {name: '反馈标题', value: 'client_id'},
        {name: '反馈类型', width: '120px', value: function(item){
            switch (item.type+'') {
                case '1':
                    return '意见反馈';
                case '1':
                    return '已处理';
            }
        }},
        {name: '处理状态', width: '80px', value: function(item){
            switch (item.status+'') {
                case '0':
                    return '未处理';
                case '1':
                    return '已处理';
            }
        }},
        {name: '创建日期', width: '80px', value: function(item){
            return App.util.formator.date(item.created_at);
        }}
    ],
    form: [
        {type: 'hidden', name: 'id'},
        {type: 'radio', name: 'type', title: '类型', required: true, items:[
            ['1', '提意见'],
            ['2', '申请中医']
        ], defaults: '1'},
        {type: 'input', name: 'title', title: '标题', required: true, maxLength: 80, rule: {
            type: 'str',
            range: [1, 160]
        }},
        {type: 'textarea', name: 'content', title: '详细说明', maxLength: 2000, rule: {
            type: 'str',
            range: [0, 2000]
        }}
    ]
};